home *** CD-ROM | disk | FTP | other *** search
- /*****************************************************************************
- * *
- * T - A Tiny Editor *
- * *
- *****************************************************************************
- * *
- * This is an example of an editor definition file used with the TKEY *
- * program to customise the T editor. *
- * *
- * If you are going to customise T it is a good idea to make a copy of this *
- * file with another name and alter that, rather than making your changes *
- * directly to this file. *
- * *
- * Then to customise simply use the command: *
- * *
- * TKEY YOUR.DEF T.EXE for the PC/DOS version *
- * or TKEY YOUR.DEF T2.EXE for the OS/2 version *
- * *
- *****************************************************************************
- * (C) Copyright IBM Corporation 1987, 1989 for Internal Use Only *
- *****************************************************************************/
-
-
- /*---- COLOUR DEFINITIONS ---------------------------------------------------*
- * *
- * Two sets of colours are defined. The first set (the 'mono' colours) are *
- * used with the old monochrome card or with any colour display if a MODE *
- * BW40 or MODE BW80 is issued. *
- * *
- * The second set of colours (the 'colour' colours) are used for the normal *
- * colour display modes. *
- * *
- * The spelling 'color' is also accepted for those who prefer it that way. *
- *---------------------------------------------------------------------------*/
-
- colour of mono data = white on black
- colour of mono mark = black on white
- colour of mono shadow cursor = underlined bright white on black
- colour of mono command line = black on white
- colour of mono status line = white on black
- colour of mono help line = white on black
- colour of mono message line = bright white on black
-
- colour of colour data = bright white on blue
- colour of colour mark = bright white on brown
- colour of colour shadow cursor = black on white
- colour of colour command line = bright white on turquoise
- colour of colour status line = bright turquoise on blue
- colour of colour help line = bright white on blue
- colour of colour message line = yellow on blue
-
-
- /*---- KEYBOARD DEFINITIONS -------------------------------------------------*
- * *
- * T has a large number of 'keyboard functions' that are accessed by assign- *
- * ing them to a user definable key. For a complete list of the functions *
- * and keys to which they may be assigned refer to the reference section of *
- * the T documentation. *
- * *
- * The following two keyboard functions are not assigned to any key: *
- * file *
- * next line *
- *---------------------------------------------------------------------------*/
-
- // The actions associated with the Function keys ...
-
- key f1 = help
- key f2 = save
- key f3 = quit
- key f4 = safe file
- key f5 = user
- key f7 = name
- key f8 = edit
- key f9 = undo
- key f10 = next file
- key a-f10 = previous file
-
-
- // The cursor and data movement keys ...
-
- key s-f1 = scroll left
- key s-f2 = scroll right
- key s-f3 = scroll up
- key s-f4 = scroll down
-
- key tab = tab
- key s-tab = backtab
-
- key up = up
- key down = down
- key left = left
- key right = right
- key home = start of line
- key end = end of line
- key pgup = page up
- key pgdn = page down
-
- key c-right = next word
- key c-left = previous word
- key c-home = top of file
- key c-end = bottom of file
- key c-pgup = top of screen
- key c-pgdn = bottom of screen
-
-
- // Character and line inserting and deleting ...
-
- key ins = insert toggle
- key del = delete character
- key backspace = backspace
- key enter = new line
- key c-enter = insert line
- key c-backspace = delete line
- key c-e = truncate line
-
-
- // Line marking functions ...
-
- key a-l = mark line
- key a-c = copy mark
- key a-d = delete mark
- key a-m = move mark
- key a-u = clear mark
- key a-y = top of mark
- key a-e = bottom of mark
-
- key a-f7 = mark left
- key a-f8 = mark right
-
-
- // Miscellaneous other keys ...
-
- key esc = command toggle
-
- key a-x = escape
-
- key a-s = split line
- key a-j = join line
- key a-a = adjust line
- key a-r = repeat line
-
- key c-f = repeat find
-
-
- // T also allows a single character to be assigned to a key. This is used
- // here to access the single line box characters.
-
- key a-1 = ascii 192 // Bottom left corner
- key a-2 = ascii 193 // Bottom intersection
- key a-3 = ascii 217 // Bottom right corner
- key a-4 = ascii 195 // Left intersection
- key a-5 = ascii 197 // Centre intersection
- key a-6 = ascii 180 // Right intersection
- key a-7 = ascii 218 // Top left corner
- key a-8 = ascii 194 // Top intersection
- key a-9 = ascii 191 // Top right corner
- key a-- = ascii 196 // Horizontal line
- key a-= = ascii 179 // Vertical line
-
- // A single character can also be assigned to a key by listing the character
- // in quotes, for example ...
-
- key a-b = "\" // Set alt-b to a back-slash
-
-
- // The default action of all the other user definable keys is 'nothing',
- // for example ...
-
- key a-q = nothing
-
-
- /*---- SPECIAL DEFINITIONS --------------------------------------------------*
- * *
- * Special editor functions and settings. *
- * *
- * These special settings are divided into two sections. The first section *
- * contains those items that most people might want to alter, the second *
- * section contains the more obscure items that most people will want to *
- * leave set to the defaults. *
- *---------------------------------------------------------------------------*/
-
- // Section One ...
-
- set command toggle = command // Start on the command line.
- set insert toggle = replace // Start up in overtype mode.
-
- set default search = case sensitive // Respect case when searching.
-
- set snow removal = automatic // With a PCJr you should set 'snow
- // removal = off'
-
- set help command = "T C:\DIRUTILY\THELP.HLP" // You may need to specify the full
- // drive/path to access the help file.
-
- set user command = "DOS" // Define a DOS function key.
-
- set margin = off // No right margin column.
-
- set help line = // A help line to show the F-keys.
- "F1=Help F2=Save F3=Quit F4=File F5=DOS F7=Name F8=Edit F9=Undo F10=Next"
-
-
- // Section Two ...
-
- set command recall = 10 // Save the last 10 commands
- set tab spacing = 8 // Set tabs every 8 spaces
- set automatic indent = on // Auto indent on new lines
- set final eof = on // Terminate files with a x'1A'
- set keyboard = automatic // Use Enhanced Keyboard if possible
-